package com.pencil.service;

import java.util.List;

import com.pencil.dao.IUserDao;
import com.pencil.dao.UserDao;
import com.pencil.vo.UserVo;

public class UserService implements IUserDao{
	private static UserService service = new UserService();
	private IUserDao manager;

	private UserService() {
		manager = new UserDao();
	}

	public static UserService getInstance() {
		return service;
	}

	public List<UserVo> getAllUser() {
		return manager.getAllUser();
	}

	public UserVo getAUser(String user_id) {
		return manager.getAUser(user_id);
	}

	public int regiUser(UserVo userVo) {
		return manager.regiUser(userVo);
	}

	public int updateUser(String user_id) {
		return manager.updateUser(user_id);
	}

	public int goOutUser(String user_id) {
		return manager.goOutUser(user_id);
	}
}
